/**
 * Created by MMangoo on 2018/10/22.
 */
window.onload=function () {
    let bannerList=document.getElementById("banner");
    let phoArr=document.querySelectorAll("#banner .pho");
    console.log(2);
    let i=0;

        setInterval(function () {
            if (i<=3){
                bannerList.style.transform="translateX("+
                    (-i*312)+"px)";
                i++;
            }else {
                i=0;
            }


        },2000)


};
